home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / others / nwutils.zip / EN004.NW < prev    next >
Text File  |  1992-01-23  |  4KB  |  105 lines

  1. EN004 Error and Greyed out Icons:  Causes and Remedies
  2. ======================================================
  3.  
  4. If you've ever encountered a greyed out icon, or an "EN004:
  5. NewWave is unable to find main window of this application" 
  6. error when closing down an application that has been bridged 
  7. into NewWave, here's what is happening and how to correct it.
  8.  
  9. CAUSE:
  10. ======
  11.  
  12. The errors are occurring because of a timing problem.  Basically,
  13. NewWave is looking for the window to close down but it runs out
  14. of time.  There are two main causes for this problem:
  15.  
  16.   CAUSE 1: Your bridge builder object may have improper 
  17.            (or missing) windows title or class names in the
  18.            "Specify Window Title" screen off of settings 
  19.            step 1 (define application). 
  20.  
  21.   CAUSE 2: (Primarily for greyed out icons without an EN004 
  22.            message). This lies in the way the Windows 
  23.            application closes itself down.  If the 
  24.            terminating application sends a Windows POSTQUIT 
  25.            message instead of a WM_DESTROY message, NewWave
  26.            believes that the application is still running 
  27.            and thus keeps the icon greyed out.  
  28.                 
  29. RESOLUTION:
  30. ===========
  31.  
  32. These problems are resolved by deinstalling the problem tool
  33. or object, making the appropriate changes to the application's 
  34. Bridge Builder object, and rebridging the application.  The
  35. procedure is as follows:
  36.        
  37.        1) Exit and restart NewWave to "ungrey" the icon.  It
  38.           may be necessary  to delete the HPOMF.SDF file in 
  39.           the \HPNWDATA subdirectory before restarting NewWave.  
  40.           Please note that if you merely exit to a DOS prompt
  41.           to delete this file you won't be able to find it. 
  42.           It is only created when you exit from NewWave.  
  43.  
  44.        2) Deinstall the problem object or tool.  To do this,
  45.           you will go into the Settings menu of the NW Office 
  46.           Window, then press "Manage Tools" or "Manage Masters".  
  47.           You then should press CNTL+ALT+X (all three keys 
  48.           at once).  This will bring up a deinstall button.
  49.           Click once on the tool or object that you wish to 
  50.           deinstall.  Press the Deinstall button, and then
  51.           the OK button.  Confirm the deinstallation.
  52.  
  53.        3) Fix the problem by modifying your application's 
  54.           Bridge Builder object (per the instructions later
  55.           in this document), and then reinstall your bridge.
  56.           If your first changes do not remedy the greyed
  57.           icon or EN004 problems, then try the other 
  58.           recommendations, in combinations if necessary.
  59.  
  60. Bridge Changes
  61. ==============
  62.  
  63. Here is how to correct your bridge to work around the two
  64. problem causes listed above:
  65.        
  66. For Cause 1 (EN004).....
  67.  
  68.   1.  Go to Define Application -- Specify Window Title and
  69.       change the title name.  For some applications the 
  70.       title name may be hyphenated; try deleting the hyphenated
  71.       portion.  If this doesn't work, then leave the title name
  72.       blank.  Be sure NOT to hit the Update pushbutton.  
  73.  
  74.   2.  Go to Optional Advanced Functions - Extra Class Properties
  75.       and add (in CAPS):
  76.  
  77.         Property Name:  PROP_SEARCHWINDOW
  78.         Property Text:  ####
  79.  
  80.       (The default is 5000.  Try #'s from 1000 up to 
  81.       5000 in increments of 500.  Setting the speed
  82.       lower speeds the polling up).
  83.  
  84.       Choose Add to add the item & reinstall the bridge.
  85.  
  86. For cause 2 (greyed out icon).....
  87.  
  88.   1.  Go to Optional Advanced Functions - Extra Class Properties
  89.       and add (in CAPS):
  90.       
  91.         Property Name:  PROP_UNSUBCLASS
  92.         Property Text:  0010
  93.  
  94.       Choose Add to add the item & re-install the bridge.
  95.  
  96.  
  97. IF EACH CHANGE INDIVIDUALLY FAILS
  98. =================================
  99.  
  100.  Try deleting BOTH the window's title and class names from
  101.  the "Windows Class Title" screen of "Define Application",
  102.  AND add both the PROP_UNSUBCLASS and PROP_SEARCHWINDOW
  103.  extra class properties (and proper text) as outlined in the 
  104.  above steps.
  105.